package com.fridge.data;

import java.util.Date;

public class ShoppingItem {

	
    public static final int STATUS_DONE = 1;
    public static final int STATUS_DEFAULT = 0;

	
	private int id;
    private String name;
    //private Date expire;
    private String pic;
    private int status;
    private int quantity;
    
 
    public ShoppingItem(){
    	status = STATUS_DEFAULT;
    	pic = "";
    }
 
    public ShoppingItem(int id, String name, Date expire , String pic , int quantity , int status) 
    {
        super();
        this.setId(id);
        this.setName(name);
        this.setPic(pic);
        this.setStatus(status);
        this.setQuantity(quantity);
    }
 
    
    //getters & setters
    
    public String getName()
    {
    	return this.name;
    }
    public void setName(String name)
    {
    	this.name = name;
    }

//	public Date getExpire() {
//		return expire;
//	}
//
//	public void setExpire(Date date) {
//		this.expire = date;
//	}

	
	public String getPic() {
		return pic;
	}

	public void setPic(String pic) {
		this.pic = pic;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getQuantity() {
		return quantity;
	}

	public void setQuantity(int quantity) {
		this.quantity = quantity;
	}
	
	public String getQuantityString()
	{
		return Integer.toString(this.quantity);
	}
}
